package br.com.massai.model.repository;

import java.util.List;

import br.com.massai.model.entity.Obra;
import br.com.massai.model.entity.PlanilhaLancamento;
import br.com.massai.model.entity.Usuario;

public interface ObraRepository extends GenericRepository<Obra> {

	void salvarObra(Obra o) throws Exception;
	List<Obra> obterObrasSemGrupo() throws Exception;
	List<Obra> obterObraPorResponsavel() throws Exception;
	List<Obra> obterObraPorResponsavel(Usuario user) throws Exception;
	List<Obra> obterObjetoObra(List<Long> ids) throws Exception;
	Obra obterPorCodigo(Long id) throws Exception;
	List<Obra> obterPorExemplo(Obra o) throws Exception;
	Obra obterObraDeptoColigada(String codDepto, Long coligada) throws Exception;
	List<Obra> obterObrasAssociadas() throws Exception;
	List<Obra> obterObrasGrupoSelecionada() throws Exception;
	List<Obra> obterObrasComGrupo() throws Exception;
	List<Obra> obterObrasPermitidas(PlanilhaLancamento planilha) throws Exception;

}